﻿using System;
using System.Windows.Forms;

namespace EA_therapy
{
    public partial class main : Form
    {
        Panel father;
        public main(Panel _father)
        {
            InitializeComponent();
            father = _father;
            this.timer1.Enabled = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false; //关闭定时器
            this.father.Controls.Clear();
            Patient newform = new Patient(father);
            newform.FormBorderStyle = FormBorderStyle.None;
            newform.TopLevel = false;
            newform.ControlBox = false;
            newform.Dock = DockStyle.Fill;
            this.father.Controls.Add(newform);
            newform.Show();
            this.Close();
        }
    }
}
